﻿namespace ScrumLite.WebUx.Models
{
    using System;
    using ScrumLite.Services.Contracts;
    using System.Collections.ObjectModel;

    public class DeliverableViewData : ContextViewData
    {
        public DeliverableViewData() : this(new Collection<WorkArea>())
        {
        }

        public DeliverableViewData(Collection<WorkArea> workAreas)
        {
            this.WorkAreas = workAreas;
        }

        public Guid Id { get; set; }
        public int Moniker { get; set; }

        public string Name { get; set; }
        public string Path { get; set; }
        public DateTime ReleasedOn { get; set; }
        public bool IsDefective { get; set; }

        public Collection<WorkArea> WorkAreas { get; private set; }

        public WorkAreasPickerViewData WorkAreasPickerViewData { get; set; }

        public string Message { get; set; }
    }
}